<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="/WEB-INF/jsp/includeTop.jsp" %>
<table width="100%" border="0" cellpadding="0" cellspacing="5">
  <tr>
    <td valign="top">
      <table class="dbborder" width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="bottom" class="blueTableBg">
          		&nbsp;
          		<c:if test="${from==null}">
          			我的任务
	          	</c:if>
	          	<c:if test="${from=='subordinate'}">
	          		下属任务
	          	</c:if>
          		&nbsp;-&nbsp;
          	<c:if test="${jobStatus=='FINISHED'}">
          		已完成任务
          	</c:if>
          	<c:if test="${jobStatus=='NOT_FINISHED'}">
          		未完成任务
          	</c:if>
          	<c:if test="${jobStatus=='DELAYED'}">
          		延误任务
          	</c:if>
          	<c:if test="${jobStatus==null}">
          		全部任务
          	</c:if>
          </td>
        </tr>

        <tr>
          <td>

          		<form id="taskSearchForm">
          			<input name="searchType" type="hidden" value="${from}" />
                    <c:if test="${jobStatus!=null}"><input name="jobStatus" type="hidden" value="${jobStatus}" /></c:if>
<%--           			          	<c:if test="${from==null}"> --%>
          			<%@ include file="/WEB-INF/jsp/plan/taskSearch.jsp" %>
<%--           			           	</c:if> --%>
          		</form>

            <table width="100%" border="0" cellpadding="0" cellspacing="5">
              <tr>
                <td>
                  <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td class="dashTopLeft"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
                      <td class="dashTop" width=100%><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
                      <td class="dashTopRight"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
                    </tr>

                    <tr>
                      <td class="dashLeft"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
                      <td align="center">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
						  <tr>
						     <td>
						        <div id="taskListData" class="pageDiv">

						       	</div>
						     </td>
						   </tr>
                        </table>
                      </td>
                      <td class="dashRight"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
                    </tr>
                    <tr>
                      <td class="dashBottomLeft"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
                      <td class="dashBottom" width=100%><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
                      <td class="dashBottomRight"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!-- <form id="taskSearchForm"> -->
<%-- 	<input name="searchType" type="hidden" value="${from}" /> --%>
<%-- 	<input name="jobStatus" type="hidden" value="${jobStatus}" /> --%>
<!-- </form> -->
<script type="text/javascript">
	listDefaultPageAjax('taskListData','taskSearchForm','<c:url value="/plan/taskListData.html" />');
</script>
